//
//  String+utils.swift
//  casdon_swiftUI
//
//  Created by ww on 2025/5/3.
//

import Foundation
extension String {
    func localized() -> String {
        return NSLocalizedString(self, comment: "")
    }
    
    func localized(with arguments: CVarArg...) -> String {
        return String(format: NSLocalizedString(self, comment: ""), arguments: arguments)
    }
    
    var  I18n: String {
        return localized()
    }
}
